Einhugur Word Plugin for Xojo

Paragraph.AppendRun Method

Appends run at back of the paragraph, creating one run for the image data passed in with this method. (This variation of the AppendRun is to embed images).

AppendRun(
   value as String,
   mediaType as EinhugurWord.PictureTypes,
   originalFileName as String,
   width as Integer,
   height as Integer) as EinhugurWord.Run

Parameters

value
Value to carry the raw image data.
mediaType
Picture type.

Nil will be returned if passing unknown here.
originalFileName
File name of the original file. It is not mandatory to include the original name, but if you do not then you still need to fill out this field with some name.
width
Width of the image.
height
Height of the image.

Returns

EinhugurWord.Run
Handle to the new Run or nil.

Remarks

You can use the Einhugur Graphics formats plugin to stream Xojo picture Object correctly into the string value of this method.

See Also

Paragraph Class